#ifndef JXQ_JTCPSERVER_H
#define JXQ_JTCPSERVER_H

#include <JXQIO/JAbstractIO>
#include <JXQNetwork/JHostAddr>

namespace JXQ
{

class JTcpServerPrivate;

class JXQLIB_EXPORT JTcpServer : public JAbstractIO
{
public:
	JTcpServer();
	~JTcpServer();

public:
	bool listen(uint16_t port, const JString &ip = "0.0.0.0");
	bool listen(uint16_t port, const JHostAddr &ip);

private:
	JTcpServerPrivate *d_ptr;
};

} // namespace JXQ


#endif // JXQ_JTCPSERVER_H
